home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Taifun / Taifun 109 (1989-08-15)(Ossowski, Stefan)(DE)(PD).zip / Taifun 109 (1989-08-15)(Ossowski, Stefan)(DE)(PD).adf / Includes / audiohardware.asm < prev    next >
Assembly Source File  |  1989-02-20  |  700b  |  41 lines

  1. aud0lc=$dff0a0
  2. aud0len=$dff0a4
  3. aud0vol=$dff0a8
  4. aud0per=$dff0a6
  5. dmacon=$dff096
  6. adkcon=$dff09e
  7. intreqr=$dff01e
  8. intreq=$dff09c
  9. intena=$dff09a
  10.  
  11. start  move.w  #$000f,dmacon
  12.        move.w  #$00ff,adkcon
  13.  
  14.        move.l  #400000,d0
  15. wl     dbra    d0,wl
  16.  
  17.        move.l  #sound,aud0lc
  18.        move.w  #991,aud0per
  19.        move.w  #60,aud0vol
  20.        move.w  #250,aud0len
  21.  
  22.        move.w  #$8001,dmacon
  23.        move.w  #$0080,intreq
  24.        move.w  #$0080,intena
  25.  
  26. waits  move.w  intreqr,d0
  27.        btst    #7,d0
  28.        beq     waits
  29.  
  30.        move.w  #%0000000010000000,intreq
  31.        move.l  #leer,aud0lc
  32.        move.w  #1,aud0len
  33.        rts
  34.  
  35.  align.w
  36. sound: ibytes  "includes/zap",500
  37.  align.w
  38. leer   ds.l    0
  39.  end
  40.  
  41.